package com.weixing.mall.provider.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.additional.query.impl.QueryChainWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.weixing.mall.provider.mapper.InDepotBillProductMapper;
import com.weixing.mall.provider.model.domain.InDepotBillProduct;
import com.weixing.mall.provider.model.dto.ChgDepotNumDto;
import com.weixing.mall.provider.model.vo.InDepotBillProductVo;
import com.weixing.mall.provider.service.IInDepotBillProductService;
import org.springframework.stereotype.Service;

import java.time.LocalTime;
import java.util.List;


/**
 * <p>
 * 仓库模块-入库单关联商品 服务实现类
 * </p>
 *
 * @author Small
 * @since 2019-11-15
 */
@Service
public class InDepotBillProductServiceImpl extends ServiceImpl<InDepotBillProductMapper, InDepotBillProduct> implements IInDepotBillProductService {



    @Override
    public IPage getInDepotBillProductByInDeoptId(Page page,Long inDepotId) {
        return baseMapper.getInDepotBillProductByInDeoptId(page,inDepotId);
    }

    @Override
    public void inDepotChgNum(ChgDepotNumDto chgDepotNumDto, Long uid) {
        chgDepotNumDto.setUpdatedBy(uid);
        chgDepotNumDto.setUpdatedTime(LocalTime.now());
        baseMapper.inDepotChgNum(chgDepotNumDto);
    }

}
